﻿namespace Vigenère_cipher
{
    internal class Program
    {   /// <summary>
    /// 维吉尼亚密码的实现.
    /// </summary>
    /// <param name="args"></param>
        static void Main(string[] args)
        {   
            Console.WriteLine("请输入要加密的字符：");
            string plain = Console.ReadLine();
            Console.WriteLine("请输入密钥：");
            string key = Console.ReadLine();
            MyEncode myEncode = new MyEncode();
            myEncode.PlainText = plain;
            myEncode.Key = key;
            myEncode.EnCode(); //进行加密
            Console.WriteLine("加密后的字符为：");
            Console.WriteLine(myEncode.CipherText);

        }
    }
}